AI SDK Kotlin
Toggle table of contents
0.2.0
common
Target filter
common
Switch theme
Search in API
Skip to content
AI SDK Kotlin
AI SDK Kotlin
/
ai.torad.aisdk
/
IdGenerator
Id
Generator
data
class
IdGenerator
(
val
prefix
:
String
?
=
null
,
val
size
:
Int
=
16
,
val
alphabet
:
String
=
"0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz"
,
val
separator
:
String
=
"-"
,
val
random
:
Random
=
Random.Default
)
Members
Constructors
Id
Generator
Link copied to clipboard
constructor
(
prefix
:
String
?
=
null
,
size
:
Int
=
16
,
alphabet
:
String
=
"0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz"
,
separator
:
String
=
"-"
,
random
:
Random
=
Random.Default
)
Properties
alphabet
Link copied to clipboard
val
alphabet
:
String
prefix
Link copied to clipboard
val
prefix
:
String
?
random
Link copied to clipboard
val
random
:
Random
separator
Link copied to clipboard
val
separator
:
String
size
Link copied to clipboard
val
size
:
Int
Functions
generate
Link copied to clipboard
fun
generate
(
)
:
String